LEADTOOLS Medical (Leadtools.Medical.Caching assembly)
LEAD Technologies, Inc

Add(String,Byte[],CacheItemPriority,String) Method






A System.String that uniquely identifies the cache item to be added.
An array of System.Byte representing the item data.
The relative precedence of the cache item expressed by System.Web.Caching.CacheItemPriority. Items with lower cache priority will be removed before items with higher priority.
A System.String to item that will be deleted when the added cache item is deleted.
Adds a new item to the cache store.
Syntax
public virtual void Add( 
   string id,
   byte[] data,
   CacheItemPriority priority,
   string dependency
)
'Declaration
 
Public Overloads Overridable Sub Add( _
   ByVal id As String, _
   ByVal data() As Byte, _
   ByVal priority As CacheItemPriority, _
   ByVal dependency As String _
) 
'Usage
 
Dim instance As Cache
Dim id As String
Dim data() As Byte
Dim priority As CacheItemPriority
Dim dependency As String
 
instance.Add(id, data, priority, dependency)
public virtual void Add( 
   string id,
   byte[] data,
   CacheItemPriority priority,
   string dependency
)
 function Leadtools.Medical.Caching.Cache.Add(String,Byte[],CacheItemPriority,String)( 
   id ,
   data ,
   priority ,
   dependency 
)
public:
virtual void Add( 
   String^ id,
   array<byte>^ data,
   CacheItemPriority priority,
   String^ dependency
) 

Parameters

id
A System.String that uniquely identifies the cache item to be added.
data
An array of System.Byte representing the item data.
priority
The relative precedence of the cache item expressed by System.Web.Caching.CacheItemPriority. Items with lower cache priority will be removed before items with higher priority.
dependency
A System.String to item that will be deleted when the added cache item is deleted.
Remarks

This method will check whether the item already exists before inserting it. If the item exists this method will throw exception. To force the Cache object to try inserting the cache item call the Insert(String,Byte[],CacheItemPriority) method.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Cache Class
Cache Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.